import axios from '../axios'

export const getVoiceList = () => {
    return axios({
        url: '/voice/getVoiceList',
        method: 'get'
    })
}

export const getImg = (name) => {
  return axios.get({
    url: '/voice/getImg?name=' + name
  });
}

export const getVoice = (name) => {
  return axios.get('/voice/getVoice?name=' + name);
}

export const getOneVoiceName = (peopleId, nextPlay) => {
  return axios({
    url: `/voice/getOneVoiceName?nextPlay=${nextPlay ? nextPlay : ''}&peopleId=${peopleId}`,
    method: 'GET'
  });
}